package com.study.talk.netty.message.request;

import com.study.talk.netty.message.MessageType;
import com.study.talk.netty.message.TalkMessage;
import com.study.common.annotation.Desc;

import java.util.List;

@Desc("邀请加入群聊请求")
public class InviteGroupRequest extends TalkMessage {


    @Desc("群聊id")
    private Integer groupId;

    @Desc("邀请的好友id")
    private List<Integer> userList;

    @Override
    public byte getType() {
        return MessageType.INVITE_GROUP_REQUEST;
    }

    public InviteGroupRequest(Integer groupId, List<Integer> userList) {
        this.groupId = groupId;
        this.userList = userList;
    }

    public InviteGroupRequest(Integer groupId, List<Integer> userList,String datetime) {
        this.groupId = groupId;
        this.userList = userList;
        super.dateTime = datetime;
    }

    public InviteGroupRequest() {
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public List<Integer> getUserList() {
        return userList;
    }

    public void setUserList(List<Integer> userList) {
        this.userList = userList;
    }
}
